# Contributor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=mdevd
pkgver=0.0.1.0
pkgrel=0
pkgdesc="a small daemon managing kernel hotplug events, similarly to udevd"
url="http://skarnet.org/software/mdevd/"
arch="all"
license="ISC"
depends="skalibs"
makedepends="$depends-dev"
subpackages=""
source="http://skarnet.org/software/mdevd/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --enable-shared --enable-static --disable-allstatic --libdir=/usr/lib \
	--libexecdir=/lib/mdev --with-dynlib=/lib
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR=$pkgdir install || return 1
}

sha512sums="22006b940cb3b191cb3a479379f42320470b24a3fa55071a592fa81366db164dd958cf4ff25c677193c3a71056fa5b62e8a7c7fbfd020f78478e5995652c2f5d  mdevd-0.0.1.0.tar.gz"
